/* 英雄图鉴样式 */
.heroes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: transform 0.2s;
}

.hero-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.hero-card h3 {
    margin: 0 0 10px 0;
    color: #4a90e2;
}

.hero-rarity {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-bottom: 8px;
}

.rarity-1 { background: #4caf50; }
.rarity-2 { background: #2196f3; }
.rarity-3 { background: #9c27b0; }
.rarity-4 { background: #ff9800; }

/* 英雄详情样式 */
.hero-detail {
    padding: 20px;
}

.hero-basic {
    margin-bottom: 20px;
}

.hero-description {
    color: #bbb;
    margin-bottom: 15px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.hero-skills {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.skill {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.skill h4 {
    color: #4a90e2;
    margin: 0 0 8px 0;
}

.skill-type {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 5px;
}

.skill-description {
    color: #ddd;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #1a1a1a;
    color: #fff;
}

.game-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 顶部栏样式 */
.top-bar {
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.game-stats {
    display: flex;
    gap: 20px;
}

/* 主要内容区样式 */
.main-content {
    flex: 1;
    padding: 2rem;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.game-btn {
    padding: 15px;
    border: none;
    border-radius: 5px;
    background: #4a90e2;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.game-btn:hover {
    background: #357abd;
    transform: translateY(-2px);
}

/* 状态消息样式 */
.status-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    transition: opacity 0.3s;
}

.status-message.error {
    background: rgba(255, 0, 0, 0.8);
}

/* 模态框基础样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    background: #2a2a2a;
    margin: 50px auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close {
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #fff;
}

/* 布阵样式 */
.formation-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.formation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 300px;
}

.grid-cell {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed #4a90e2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-cell.occupied {
    border-style: solid;
    background: rgba(74, 144, 226, 0.1);
}

.hero-list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.hero-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    cursor: move;
    text-align: center;
    user-select: none;
}

.hero-item.dragging {
    opacity: 0.5;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
} 